#pragma once
#include "Common/CharacterDefine.h"


typedef std::vector<float> VEC_FLOAT;

class Path
{
protected:
	VEC_POINT3  m_path;						//路径
	float m_totalPathLength;					//路径总长度
	uint32_t m_nextIndex;                   //下一步的路径点下标

public:
	Path();
	~Path();
	bool Init(const ActorMove &moveData);
	bool Init(const ActorSkillMove &moveData);
	bool Init(VEC_POINT3& path, Point3<float>& curPos);
	bool GetLeftPath(VEC_POINT3 & leftPath);
	void UnInit();
	void GetMsgPath(ActorMove &moveData);
	float GetTotalPathLength() { return m_totalPathLength; }
	bool MapPathDistanceToPoint(float setpDistance, Point3<float>& retPos);
};